﻿project(USKCore)

set(USKCoreSourceFiles
        src/usk_core.cpp
        src/logger/usk_logger_impl.cpp
        src/logger/usk_logservice_impl.cpp
        src/event/usk_event_admin_impl.cpp
)

set(USKCoreHeaderFiles
        src/logger/usk_logger_impl.h
        src/logger/usk_logservice_impl.h
        src/event/usk_event_admin_impl.h
        src/usk_ldap_filter.hpp

)

set(USKCorePrivateFiles
        src/osgi_private.hpp
        src/logger/usk_logger_impl_private.hpp

)

set(USKCorePublicFiles
        include/usk/core/usk_core.h

)

USKConfigExport()

add_library(${PROJECT_NAME} SHARED
        ${USKCoreSourceFiles}
        ${USKCorePrivateFiles}
        ${USKCorePublicFiles}
        ${USKCoreHeaderFiles}
        ${USKExportConfigFileH}
)

target_include_directories(${PROJECT_NAME}
        PUBLIC
        ${USK_CORE_PUBLIC_INCLUDE_DIRS}
        ${CMAKE_CURRENT_LIST_DIR}/include
        ${CMAKE_CURRENT_LIST_DIR}/src
        ${CMAKE_CURRENT_BINARY_DIR}/include
)

target_link_libraries(${PROJECT_NAME} PUBLIC CppMicroServices usUtil usEM Poco::Foundation Poco::Util fmt-header-only)
